import React, { Component } from 'react'
import { Redirect, Route, withRouter } from 'react-router-dom'

const BaseView = ({ Component: component, ...rest }) => {
    return <Route {...rest} render={(...props) => {
        <component  {...props} />
    }} />
}

export default withRouter(BaseView)